import org.molamil.acto.commands.controller.XmlCommandsController;
import org.molamil.acto.core.Logger;
import org.molamil.acto.pages.controller.PreloadController;

/**
 * XXX: Document.
 * 
 * @author Jorge Hernandez
 */
class org.molamil.acto.AppConf {
	

	// Constants
	
	public static var PAGES_CONTROLLER_CLASS:Function = PreloadController;	public static var COMMANDS_CONTROLLER_CLASS:Function = XmlCommandsController;
	public static function get DEFAULT_VALIDATORS_PACKAGE():String {return "org.molamil.acto.validators";}
		public static function get LOGGER_LEVEL():Number { return Logger.LEVEL_INFO; }
	
	
	// Properties
	
	public static var pagesControllerClass:Function = PAGES_CONTROLLER_CLASS; 	public static var commandsControllerClass:Function = COMMANDS_CONTROLLER_CLASS; 	public static var defaultValidatorsPackage:String = DEFAULT_VALIDATORS_PACKAGE; 	public static var _loggerLevel:Number = LOGGER_LEVEL;
	
	
	// Constructor
	
	private function AppConf() {}
	
	
	// Getter/Setter
	
	public static function get loggerLevel():Number {
		return _loggerLevel;
	}
	
	public static function set loggerLevel(loggerLevel:Number) : Void {
		_loggerLevel = loggerLevel;
		Logger.level = loggerLevel;
	}
	
}